import { defineStore } from 'pinia';

export interface OrderDetail {
  vpcId: string,
  vpcIp?: string,
  vpcName?: string,
  firewallName: string,
  firewallEdition: string,
  purchaseDuration: number,
  purchaseDurationText?: string,
  protectionIpCount: number,
  flowProcessingCapacity: number,
  totalPrice: number,
  autoRenewStatus: number,
  subnetId: string
}

export const orderConfirmStore = defineStore('orderToConfirm', {
  state: () => {
    return {
      order: {} as OrderDetail,
    };
  },
  actions: {
    update(order: OrderDetail) {
      this.order = order;
    },
  },
});
